﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Threading.Tasks;

namespace FinanceAPI.Model
{
    /// <summary>
    /// 组织结构表
    /// </summary>
    [Serializable]
    [Description("组织结构表")]
    [Table("Pd_Organization")]
    public class PdEntityOrganization : AggregateRoot
    {

        /// <summary>
        /// 集团id
        /// </summary>
        [MaxLength(100)]
        public string GroupId { get; set; }

        /// <summary>
        /// 公司代码
        /// </summary>
        [MaxLength(100)]
        public string CompanyCode { get; set; }

        /// <summary>
        /// 公司唯一代码
        /// </summary>
        [MaxLength(100)]
        public string CompanyUniqueId { get; set; }

        /// <summary>
        /// 公司名称
        /// </summary>
        [MaxLength(200)]
        public string CompanyName { get; set; }

        /// <summary>
        /// 级次
        /// </summary>
        public int Level { get; set; }

        /// <summary>
        /// 上级代码
        /// </summary>
        [MaxLength(100)]
        public string ParentCode { get; set; }

        /// <summary>
        /// 判断虚实
        /// </summary>
        [MaxLength(100)]
        public string FISBIZUNIT { get; set; }

        /// <summary>
        /// 阀值 默认2000000
        /// </summary>
        public decimal Threshold { get; set; }

        /// <summary>
        /// 是否是流入资金阀值
        /// </summary>
        public decimal InflowThreshold { get; set; }

        /// <summary>
        /// 是否是项目公司
        /// </summary>
        public bool IsProjectCompany { get; set; }

        /// <summary>
        /// 流入资金是否预警
        /// </summary>
        public bool IsInflowWarning { get; set; }

    }
}
